﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Web.UI.WebControls;
using System.Web.UI;
using crm_dal.Objects;
using System.ServiceProcess;

namespace core_bll.Services
{
	public class SalesReportServices : ISalesReportServices
	{
		#region ISalesReportServices Members

		public SalesReportResponse GenerateSalesReport(SalesReportFilter filter)
		{
			var matches = Sale.GetAll().Where(sale => filter.Matches(sale));
			return new SalesReportResponse(matches.ToList());
		}



		#endregion ISalesReportServices Members
	}
}
